/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JDialogPatient.java
 *
 * Created on 25/04/2010, 18:44:59
 */
package systole.view.crud.patient;

import java.util.Date;
import org.jdesktop.application.Action;
import systole.domain.persons.AgeUtils;

/**
 *
 * @author jmj
 */
public class JDialogPatient extends javax.swing.JDialog {

    /**
     *
     */
    private static final long serialVersionUID = 6128968880954598407L;
    private ControllerPatientEdition controllerPatientEdition;
    private AgeUtils ageUtils = new AgeUtils();

    /** Creates new form JDialogPatient
     * @param parent 
     * @param controller
     */
    public JDialogPatient(java.awt.Frame parent, ControllerPatientEdition controller) {
        super(parent, true);
        initComponents();
        this.controllerPatientEdition = controller;
        this.initForm();        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnGroupSmoker = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPnlPatientPersonal = new javax.swing.JPanel();
        jSubPnlPersonalInfo = new javax.swing.JPanel();
        jCmbProfession = new javax.swing.JComboBox();
        jLblCellphone = new javax.swing.JLabel();
        jEdtIdentityNumber = new javax.swing.JTextField();
        jLblProfession = new javax.swing.JLabel();
        jLblAddress = new javax.swing.JLabel();
        jEdtAddress = new javax.swing.JTextField();
        jLblPhone = new javax.swing.JLabel();
        jEdtPhone = new javax.swing.JTextField();
        jEdtCellphone = new javax.swing.JTextField();
        jEdtMail = new javax.swing.JTextField();
        jLblMail = new javax.swing.JLabel();
        jEdtSurname = new javax.swing.JTextField();
        jXEdtBirthdate = new org.jdesktop.swingx.JXDatePicker();
        jCmbIdentityType = new javax.swing.JComboBox();
        jLblNumber = new javax.swing.JLabel();
        jCmbSex = new javax.swing.JComboBox();
        jLblIdentityType = new javax.swing.JLabel();
        jLblName = new javax.swing.JLabel();
        jLblBirthdate = new javax.swing.JLabel();
        jEdtName = new javax.swing.JTextField();
        jLblSurname = new javax.swing.JLabel();
        jLblSex = new javax.swing.JLabel();
        jLblCity = new javax.swing.JLabel();
        jEdtCity = new javax.swing.JTextField();
        jLblAge = new javax.swing.JLabel();
        jTxtAge = new javax.swing.JFormattedTextField();
        jPnlPatientClinical = new javax.swing.JPanel();
        jSubPnlTracing = new javax.swing.JPanel();
        dateLastMedicVisit = new org.jdesktop.swingx.JXDatePicker();
        lblLastMedicVisit = new javax.swing.JLabel();
        chkUnderObs = new javax.swing.JCheckBox();
        lblHeadPhysician = new javax.swing.JLabel();
        cmbHeadPhysician1 = new javax.swing.JComboBox();
        jBtnSearchMedics = new javax.swing.JButton();
        jPnlClinicalInfoTable = new javax.swing.JPanel();
        jPnlClinicalInfoCrud = new javax.swing.JPanel();
        jBtnNewClinicalInfo = new javax.swing.JButton();
        jBtnEditClinicalInfo = new javax.swing.JButton();
        jBtnDeleteClinicalInfo = new javax.swing.JButton();
        jBtnClearMedicines1 = new javax.swing.JButton();
        jPnlMedicines1 = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        tableClinicalInfo = new org.jdesktop.swingx.JXTable();
        jPanel5 = new javax.swing.JPanel();
        jPnlMedicinesTop1 = new javax.swing.JPanel();
        jPnlPatientHabits = new javax.swing.JPanel();
        jPnlHabits = new javax.swing.JPanel();
        jSubPnlVices = new javax.swing.JPanel();
        lblStartedSmoking = new javax.swing.JLabel();
        lblEndedSmoking = new javax.swing.JLabel();
        jLblCigarettesPerDay = new javax.swing.JLabel();
        jSpnCigarettsPerDay = new javax.swing.JSpinner();
        jChkDrink = new javax.swing.JCheckBox();
        chkAutoMedication = new javax.swing.JCheckBox();
        jRbNeverSmoke = new javax.swing.JRadioButton();
        jRbWasSmoker = new javax.swing.JRadioButton();
        jRbIsSmoker = new javax.swing.JRadioButton();
        jTxtYearsAtStartSmooking = new javax.swing.JFormattedTextField();
        jTxtYearsAtEndSmooking = new javax.swing.JFormattedTextField();
        jPnlGeneralHabits = new javax.swing.JPanel();
        jSubPnlBehaviour = new javax.swing.JPanel();
        cmbAngryLevel = new javax.swing.JComboBox();
        lblAngryLevel = new javax.swing.JLabel();
        cmbStressLevel = new javax.swing.JComboBox();
        lblStressLevel = new javax.swing.JLabel();
        jSubPnlDailyLife = new javax.swing.JPanel();
        chkSedentarism = new javax.swing.JCheckBox();
        lblWalkedSquares = new javax.swing.JLabel();
        lblWorkplace = new javax.swing.JLabel();
        txtWorkplace = new javax.swing.JTextField();
        spinWalkedSquares = new javax.swing.JSpinner();
        jPnlSports = new javax.swing.JPanel();
        jSubPnlSportsCrud = new javax.swing.JPanel();
        jBtnNewSport = new javax.swing.JButton();
        jBtnEditSport = new javax.swing.JButton();
        jBtnDeleteSport = new javax.swing.JButton();
        jBtnClearSports = new javax.swing.JButton();
        jPnlSportsList = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tableSportsList = new org.jdesktop.swingx.JXTable();
        jPnlTableTop = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPnlSportsBottom = new javax.swing.JPanel();
        jPnlPatientPathologies = new javax.swing.JPanel();
        jPnlTablePathology = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tablePathologiesList = new org.jdesktop.swingx.JXTable();
        jSubPnlPathologyCrud = new javax.swing.JPanel();
        jBtnNewPathology = new javax.swing.JButton();
        jBtnEditPathology = new javax.swing.JButton();
        jBtnDeletePathology = new javax.swing.JButton();
        jBtnClearPathologies = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jPnlPatientSurgeries = new javax.swing.JPanel();
        jPnlTableSurgery = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tableSurgeriesList = new org.jdesktop.swingx.JXTable();
        jPnlSugeries = new javax.swing.JPanel();
        jBtnNewSurgery = new javax.swing.JButton();
        jBtnEditSurgery = new javax.swing.JButton();
        jBtnDeleteSurgery = new javax.swing.JButton();
        jBtnClearSurgeries = new javax.swing.JButton();
        jPnlSurgeryTop = new javax.swing.JPanel();
        jPnlSurgeryBottom = new javax.swing.JPanel();
        jPnlPatientMedicines = new javax.swing.JPanel();
        jPnlMedicines = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tableMedicinesList = new org.jdesktop.swingx.JXTable();
        jPanel3 = new javax.swing.JPanel();
        jPnlMedicinesTop = new javax.swing.JPanel();
        jSubPnlMedicinesCrud = new javax.swing.JPanel();
        jBtnNewMedicine = new javax.swing.JButton();
        jBtnEditMedicine = new javax.swing.JButton();
        jBtnDeleteMedicine = new javax.swing.JButton();
        jBtnClearMedicines = new javax.swing.JButton();
        jPnlFamilyBackground = new javax.swing.JPanel();
        jPnlBackground = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTableBackground = new org.jdesktop.swingx.JXTable();
        jPnlBackgroundBottom = new javax.swing.JPanel();
        jPnlBackgroundTop = new javax.swing.JPanel();
        jSubPnlFamily = new javax.swing.JPanel();
        jBtnNewBackground = new javax.swing.JButton();
        jBtnEditBackground = new javax.swing.JButton();
        jBtnDeleteBackground = new javax.swing.JButton();
        jBtnClearBackground = new javax.swing.JButton();
        jPnlBtns = new javax.swing.JPanel();
        jBtnOk = new javax.swing.JButton();
        jBtnCancel = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setModal(true);
        setName("Form"); // NOI18N
        setResizable(false);

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N
        jTabbedPane1.setPreferredSize(new java.awt.Dimension(533, 410));

        jPnlPatientPersonal.setName("jPnlPatientPersonal"); // NOI18N
        jPnlPatientPersonal.setLayout(new java.awt.BorderLayout());

        jSubPnlPersonalInfo.setName("jSubPnlPersonalInfo"); // NOI18N
        jSubPnlPersonalInfo.setPreferredSize(new java.awt.Dimension(400, 400));

        jCmbProfession.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ama de casa", "Arquitecto", "Diseñador", "Minero" }));
        jCmbProfession.setName("jCmbProfession"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(systole.view.SystoleApp.class).getContext().getResourceMap(JDialogPatient.class);
        jLblCellphone.setText(resourceMap.getString("jLblCellphone.text")); // NOI18N
        jLblCellphone.setName("jLblCellphone"); // NOI18N

        jEdtIdentityNumber.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jEdtIdentityNumber.setText(resourceMap.getString("jEdtIdentityNumber.text")); // NOI18N
        jEdtIdentityNumber.setName("jEdtIdentityNumber"); // NOI18N

        jLblProfession.setText(resourceMap.getString("jLblProfession.text")); // NOI18N
        jLblProfession.setName("jLblProfession"); // NOI18N

        jLblAddress.setText(resourceMap.getString("jLblAddress.text")); // NOI18N
        jLblAddress.setName("jLblAddress"); // NOI18N

        jEdtAddress.setText(resourceMap.getString("jEdtAddress.text")); // NOI18N
        jEdtAddress.setName("jEdtAddress"); // NOI18N

        jLblPhone.setText(resourceMap.getString("jLblPhone.text")); // NOI18N
        jLblPhone.setName("jLblPhone"); // NOI18N

        jEdtPhone.setText(resourceMap.getString("jEdtPhone.text")); // NOI18N
        jEdtPhone.setName("jEdtPhone"); // NOI18N

        jEdtCellphone.setText(resourceMap.getString("jEdtCellphone.text")); // NOI18N
        jEdtCellphone.setName("jEdtCellphone"); // NOI18N

        jEdtMail.setText(resourceMap.getString("jEdtMail.text")); // NOI18N
        jEdtMail.setName("jEdtMail"); // NOI18N

        jLblMail.setText(resourceMap.getString("jLblMail.text")); // NOI18N
        jLblMail.setName("jLblMail"); // NOI18N

        jEdtSurname.setText(resourceMap.getString("jEdtSurname.text")); // NOI18N
        jEdtSurname.setName("jEdtSurname"); // NOI18N

        jXEdtBirthdate.setName("jXEdtBirthdate"); // NOI18N
        jXEdtBirthdate.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jXEdtBirthdatePropertyChange(evt);
            }
        });

        jCmbIdentityType.setName("jCmbIdentityType"); // NOI18N

        jLblNumber.setText(resourceMap.getString("jLblNumber.text")); // NOI18N
        jLblNumber.setName("jLblNumber"); // NOI18N

        jCmbSex.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "F", "M" }));
        jCmbSex.setName("jCmbSex"); // NOI18N

        jLblIdentityType.setText(resourceMap.getString("jLblIdentityType.text")); // NOI18N
        jLblIdentityType.setName("jLblIdentityType"); // NOI18N

        jLblName.setFont(jLblName.getFont().deriveFont(jLblName.getFont().getStyle() | java.awt.Font.BOLD));
        jLblName.setText(resourceMap.getString("jLblName.text")); // NOI18N
        jLblName.setName("jLblName"); // NOI18N

        jLblBirthdate.setText(resourceMap.getString("jLblBirthdate.text")); // NOI18N
        jLblBirthdate.setName("jLblBirthdate"); // NOI18N

        jEdtName.setText(resourceMap.getString("jEdtName.text")); // NOI18N
        jEdtName.setName("jEdtName"); // NOI18N

        jLblSurname.setFont(jLblSurname.getFont().deriveFont(jLblSurname.getFont().getStyle() | java.awt.Font.BOLD));
        jLblSurname.setText(resourceMap.getString("jLblSurname.text")); // NOI18N
        jLblSurname.setName("jLblSurname"); // NOI18N

        jLblSex.setFont(jLblSex.getFont().deriveFont(jLblSex.getFont().getStyle() | java.awt.Font.BOLD));
        jLblSex.setText(resourceMap.getString("jLblSex.text")); // NOI18N
        jLblSex.setName("jLblSex"); // NOI18N

        jLblCity.setText(resourceMap.getString("jLblCity.text")); // NOI18N
        jLblCity.setName("jLblCity"); // NOI18N

        jEdtCity.setName("jEdtCity"); // NOI18N

        jLblAge.setText(resourceMap.getString("jLblAge.text")); // NOI18N
        jLblAge.setName("jLblAge"); // NOI18N

        jTxtAge.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jTxtAge.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jTxtAge.setText(resourceMap.getString("jTxtAge.text")); // NOI18N
        jTxtAge.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
        jTxtAge.setName("jTxtAge"); // NOI18N
        jTxtAge.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jTxtAgePropertyChange(evt);
            }
        });

        javax.swing.GroupLayout jSubPnlPersonalInfoLayout = new javax.swing.GroupLayout(jSubPnlPersonalInfo);
        jSubPnlPersonalInfo.setLayout(jSubPnlPersonalInfoLayout);
        jSubPnlPersonalInfoLayout.setHorizontalGroup(
            jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlPersonalInfoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLblSurname, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblSex, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblIdentityType, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblProfession, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblCellphone, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblAddress, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(4, 4, 4)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jEdtSurname, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jSubPnlPersonalInfoLayout.createSequentialGroup()
                        .addComponent(jCmbSex, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLblAge)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTxtAge, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jCmbIdentityType, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCmbProfession, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jEdtCellphone, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jEdtAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLblName, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblBirthdate, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblNumber, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblMail, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblPhone, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLblCity, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jEdtName, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jXEdtBirthdate, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jEdtIdentityNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jEdtMail, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jEdtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jEdtCity, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(211, Short.MAX_VALUE))
        );

        jSubPnlPersonalInfoLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jCmbIdentityType, jCmbProfession, jEdtAddress, jEdtCellphone, jEdtSurname});

        jSubPnlPersonalInfoLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jEdtCity, jEdtIdentityNumber, jEdtMail, jEdtName, jEdtPhone, jXEdtBirthdate});

        jSubPnlPersonalInfoLayout.setVerticalGroup(
            jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlPersonalInfoLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblSurname)
                    .addComponent(jEdtSurname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblName)
                    .addComponent(jEdtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblSex)
                    .addComponent(jCmbSex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblBirthdate)
                    .addComponent(jXEdtBirthdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblAge)
                    .addComponent(jTxtAge, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblIdentityType)
                    .addComponent(jCmbIdentityType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblNumber)
                    .addComponent(jEdtIdentityNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblProfession)
                    .addComponent(jCmbProfession, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblMail)
                    .addComponent(jEdtMail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblCellphone)
                    .addComponent(jEdtCellphone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblPhone)
                    .addComponent(jEdtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13)
                .addGroup(jSubPnlPersonalInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblAddress)
                    .addComponent(jEdtAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblCity)
                    .addComponent(jEdtCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(196, Short.MAX_VALUE))
        );

        jPnlPatientPersonal.add(jSubPnlPersonalInfo, java.awt.BorderLayout.PAGE_START);

        jTabbedPane1.addTab(resourceMap.getString("jPnlPatientPersonal.TabConstraints.tabTitle"), jPnlPatientPersonal); // NOI18N

        jPnlPatientClinical.setName("jPnlPatientClinical"); // NOI18N
        jPnlPatientClinical.setLayout(new java.awt.BorderLayout());

        jSubPnlTracing.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jSubPnlTracing.border.title"))); // NOI18N
        jSubPnlTracing.setName("jSubPnlTracing"); // NOI18N
        jSubPnlTracing.setPreferredSize(new java.awt.Dimension(400, 100));

        dateLastMedicVisit.setName("dateLastMedicVisit"); // NOI18N

        lblLastMedicVisit.setText(resourceMap.getString("lblLastMedicVisit.text")); // NOI18N
        lblLastMedicVisit.setName("lblLastMedicVisit"); // NOI18N

        chkUnderObs.setText(resourceMap.getString("chkUnderObs.text")); // NOI18N
        chkUnderObs.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        chkUnderObs.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        chkUnderObs.setIconTextGap(8);
        chkUnderObs.setName("chkUnderObs"); // NOI18N

        lblHeadPhysician.setText(resourceMap.getString("lblHeadPhysician.text")); // NOI18N
        lblHeadPhysician.setName("lblHeadPhysician"); // NOI18N

        cmbHeadPhysician1.setName("cmbHeadPhysician1"); // NOI18N

        jBtnSearchMedics.setText(resourceMap.getString("jBtnSearchMedics.text")); // NOI18N
        jBtnSearchMedics.setName("jBtnSearchMedics"); // NOI18N

        javax.swing.GroupLayout jSubPnlTracingLayout = new javax.swing.GroupLayout(jSubPnlTracing);
        jSubPnlTracing.setLayout(jSubPnlTracingLayout);
        jSubPnlTracingLayout.setHorizontalGroup(
            jSubPnlTracingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlTracingLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jSubPnlTracingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jSubPnlTracingLayout.createSequentialGroup()
                        .addComponent(lblHeadPhysician)
                        .addGap(18, 18, 18)
                        .addComponent(cmbHeadPhysician1, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jBtnSearchMedics))
                    .addGroup(jSubPnlTracingLayout.createSequentialGroup()
                        .addComponent(lblLastMedicVisit)
                        .addGap(18, 18, 18)
                        .addComponent(dateLastMedicVisit, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(chkUnderObs)))
                .addContainerGap(257, Short.MAX_VALUE))
        );
        jSubPnlTracingLayout.setVerticalGroup(
            jSubPnlTracingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlTracingLayout.createSequentialGroup()
                .addGroup(jSubPnlTracingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(lblHeadPhysician)
                    .addComponent(cmbHeadPhysician1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtnSearchMedics))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlTracingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(lblLastMedicVisit)
                    .addComponent(dateLastMedicVisit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(chkUnderObs))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jPnlPatientClinical.add(jSubPnlTracing, java.awt.BorderLayout.PAGE_START);

        jPnlClinicalInfoTable.setName("jPnlClinicalInfoTable"); // NOI18N
        jPnlClinicalInfoTable.setLayout(new java.awt.BorderLayout());

        jPnlClinicalInfoCrud.setName("jPnlClinicalInfoCrud"); // NOI18N
        jPnlClinicalInfoCrud.setPreferredSize(new java.awt.Dimension(150, 200));

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(systole.view.SystoleApp.class).getContext().getActionMap(JDialogPatient.class, this);
        jBtnNewClinicalInfo.setAction(actionMap.get("newClinicalInfo")); // NOI18N
        jBtnNewClinicalInfo.setIcon(resourceMap.getIcon("jBtnNewClinicalInfo.icon")); // NOI18N
        jBtnNewClinicalInfo.setText(resourceMap.getString("jBtnNewClinicalInfo.text")); // NOI18N
        jBtnNewClinicalInfo.setToolTipText(resourceMap.getString("jBtnNewClinicalInfo.toolTipText")); // NOI18N
        jBtnNewClinicalInfo.setName("jBtnNewClinicalInfo"); // NOI18N
        jBtnNewClinicalInfo.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlClinicalInfoCrud.add(jBtnNewClinicalInfo);

        jBtnEditClinicalInfo.setAction(actionMap.get("editClinicalInfo")); // NOI18N
        jBtnEditClinicalInfo.setIcon(resourceMap.getIcon("jBtnEditClinicalInfo.icon")); // NOI18N
        jBtnEditClinicalInfo.setText(resourceMap.getString("jBtnEditClinicalInfo.text")); // NOI18N
        jBtnEditClinicalInfo.setToolTipText(resourceMap.getString("jBtnEditClinicalInfo.toolTipText")); // NOI18N
        jBtnEditClinicalInfo.setName("jBtnEditClinicalInfo"); // NOI18N
        jBtnEditClinicalInfo.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlClinicalInfoCrud.add(jBtnEditClinicalInfo);

        jBtnDeleteClinicalInfo.setAction(actionMap.get("removeClinicalInfo")); // NOI18N
        jBtnDeleteClinicalInfo.setIcon(resourceMap.getIcon("jBtnDeleteClinicalInfo.icon")); // NOI18N
        jBtnDeleteClinicalInfo.setText(resourceMap.getString("jBtnDeleteClinicalInfo.text")); // NOI18N
        jBtnDeleteClinicalInfo.setToolTipText(resourceMap.getString("jBtnDeleteClinicalInfo.toolTipText")); // NOI18N
        jBtnDeleteClinicalInfo.setName("jBtnDeleteClinicalInfo"); // NOI18N
        jBtnDeleteClinicalInfo.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlClinicalInfoCrud.add(jBtnDeleteClinicalInfo);

        jBtnClearMedicines1.setAction(actionMap.get("clearClinicalInfo")); // NOI18N
        jBtnClearMedicines1.setIcon(resourceMap.getIcon("jBtnClearMedicines1.icon")); // NOI18N
        jBtnClearMedicines1.setText(resourceMap.getString("jBtnClearMedicines1.text")); // NOI18N
        jBtnClearMedicines1.setToolTipText(resourceMap.getString("jBtnClearMedicines1.toolTipText")); // NOI18N
        jBtnClearMedicines1.setName("jBtnClearMedicines1"); // NOI18N
        jBtnClearMedicines1.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlClinicalInfoCrud.add(jBtnClearMedicines1);

        jPnlClinicalInfoTable.add(jPnlClinicalInfoCrud, java.awt.BorderLayout.EAST);

        jPnlMedicines1.setName("jPnlMedicines1"); // NOI18N
        jPnlMedicines1.setPreferredSize(new java.awt.Dimension(378, 200));
        jPnlMedicines1.setRequestFocusEnabled(false);
        jPnlMedicines1.setLayout(new java.awt.BorderLayout());

        jScrollPane7.setName("jScrollPane7"); // NOI18N
        jScrollPane7.setPreferredSize(new java.awt.Dimension(378, 140));

        tableClinicalInfo.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableClinicalInfo.setName("tableClinicalInfo"); // NOI18N
        jScrollPane7.setViewportView(tableClinicalInfo);

        jPnlMedicines1.add(jScrollPane7, java.awt.BorderLayout.CENTER);

        jPanel5.setName("jPanel5"); // NOI18N
        jPanel5.setPreferredSize(new java.awt.Dimension(300, 10));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 598, Short.MAX_VALUE)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );

        jPnlMedicines1.add(jPanel5, java.awt.BorderLayout.SOUTH);

        jPnlMedicinesTop1.setName("jPnlMedicinesTop1"); // NOI18N
        jPnlMedicinesTop1.setPreferredSize(new java.awt.Dimension(300, 10));

        javax.swing.GroupLayout jPnlMedicinesTop1Layout = new javax.swing.GroupLayout(jPnlMedicinesTop1);
        jPnlMedicinesTop1.setLayout(jPnlMedicinesTop1Layout);
        jPnlMedicinesTop1Layout.setHorizontalGroup(
            jPnlMedicinesTop1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 598, Short.MAX_VALUE)
        );
        jPnlMedicinesTop1Layout.setVerticalGroup(
            jPnlMedicinesTop1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );

        jPnlMedicines1.add(jPnlMedicinesTop1, java.awt.BorderLayout.PAGE_START);

        jPnlClinicalInfoTable.add(jPnlMedicines1, java.awt.BorderLayout.CENTER);

        jPnlPatientClinical.add(jPnlClinicalInfoTable, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab(resourceMap.getString("jPnlPatientClinical.TabConstraints.tabTitle"), jPnlPatientClinical); // NOI18N

        jPnlPatientHabits.setLayout(new java.awt.BorderLayout());

        jPnlHabits.setName("jPnlHabits"); // NOI18N
        jPnlHabits.setPreferredSize(new java.awt.Dimension(400, 230));
        jPnlHabits.setLayout(new java.awt.BorderLayout());

        jSubPnlVices.setName("jSubPnlVices"); // NOI18N
        jSubPnlVices.setPreferredSize(new java.awt.Dimension(400, 150));

        lblStartedSmoking.setText(resourceMap.getString("lblStartedSmoking.text")); // NOI18N
        lblStartedSmoking.setName("lblStartedSmoking"); // NOI18N

        lblEndedSmoking.setText(resourceMap.getString("lblEndedSmoking.text")); // NOI18N
        lblEndedSmoking.setName("lblEndedSmoking"); // NOI18N

        jLblCigarettesPerDay.setText(resourceMap.getString("jLblCigarettesPerDay.text")); // NOI18N
        jLblCigarettesPerDay.setName("jLblCigarettesPerDay"); // NOI18N

        jSpnCigarettsPerDay.setName("jSpnCigarettsPerDay"); // NOI18N

        jChkDrink.setText(resourceMap.getString("jChkDrink.text")); // NOI18N
        jChkDrink.setName("jChkDrink"); // NOI18N

        chkAutoMedication.setText(resourceMap.getString("chkAutoMedication.text")); // NOI18N
        chkAutoMedication.setName("chkAutoMedication"); // NOI18N

        jRbNeverSmoke.setSelected(true);
        jRbNeverSmoke.setText(resourceMap.getString("jRbNeverSmoke.text")); // NOI18N
        jRbNeverSmoke.setName("jRbNeverSmoke"); // NOI18N
        jRbNeverSmoke.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jRbNeverSmokeStateChanged(evt);
            }
        });

        jRbWasSmoker.setText(resourceMap.getString("jRbWasSmoker.text")); // NOI18N
        jRbWasSmoker.setName("jRbWasSmoker"); // NOI18N
        jRbWasSmoker.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jRbWasSmokerStateChanged(evt);
            }
        });

        jRbIsSmoker.setText(resourceMap.getString("jRbIsSmoker.text")); // NOI18N
        jRbIsSmoker.setName("jRbIsSmoker"); // NOI18N
        jRbIsSmoker.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jRbIsSmokerStateChanged(evt);
            }
        });

        jTxtYearsAtStartSmooking.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(java.text.NumberFormat.getIntegerInstance())));
        jTxtYearsAtStartSmooking.setText(resourceMap.getString("jTxtYearsAtStartSmooking.text")); // NOI18N
        jTxtYearsAtStartSmooking.setName("jTxtYearsAtStartSmooking"); // NOI18N

        jTxtYearsAtEndSmooking.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(java.text.NumberFormat.getIntegerInstance())));
        jTxtYearsAtEndSmooking.setText(resourceMap.getString("jTxtYearsAtEndSmooking.text")); // NOI18N
        jTxtYearsAtEndSmooking.setName("jTxtYearsAtEndSmooking"); // NOI18N

        javax.swing.GroupLayout jSubPnlVicesLayout = new javax.swing.GroupLayout(jSubPnlVices);
        jSubPnlVices.setLayout(jSubPnlVicesLayout);
        jSubPnlVicesLayout.setHorizontalGroup(
            jSubPnlVicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlVicesLayout.createSequentialGroup()
                .addGroup(jSubPnlVicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jSubPnlVicesLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jRbNeverSmoke)
                        .addGap(12, 12, 12)
                        .addComponent(jRbWasSmoker)
                        .addGap(12, 12, 12)
                        .addComponent(jRbIsSmoker))
                    .addGroup(jSubPnlVicesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLblCigarettesPerDay)
                        .addGap(18, 18, 18)
                        .addComponent(jSpnCigarettsPerDay, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)
                        .addComponent(lblStartedSmoking)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTxtYearsAtStartSmooking, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblEndedSmoking)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTxtYearsAtEndSmooking, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jSubPnlVicesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jChkDrink)
                        .addGap(12, 12, 12)
                        .addComponent(chkAutoMedication)))
                .addContainerGap(330, Short.MAX_VALUE))
        );
        jSubPnlVicesLayout.setVerticalGroup(
            jSubPnlVicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlVicesLayout.createSequentialGroup()
                .addGroup(jSubPnlVicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jRbNeverSmoke)
                    .addComponent(jRbWasSmoker)
                    .addComponent(jRbIsSmoker))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlVicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLblCigarettesPerDay)
                    .addComponent(jSpnCigarettsPerDay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblStartedSmoking)
                    .addComponent(jTxtYearsAtStartSmooking, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEndedSmoking)
                    .addComponent(jTxtYearsAtEndSmooking, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlVicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jChkDrink)
                    .addComponent(chkAutoMedication))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        jPnlHabits.add(jSubPnlVices, java.awt.BorderLayout.CENTER);
        jSubPnlVices.getAccessibleContext().setAccessibleName(resourceMap.getString("jSubPnlVices.AccessibleContext.accessibleName")); // NOI18N

        jPnlGeneralHabits.setName("jPnlGeneralHabits"); // NOI18N
        jPnlGeneralHabits.setPreferredSize(new java.awt.Dimension(360, 95));
        jPnlGeneralHabits.setLayout(new java.awt.BorderLayout());

        jSubPnlBehaviour.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jSubPnlBehaviour.border.title"))); // NOI18N
        jSubPnlBehaviour.setName("jSubPnlBehaviour"); // NOI18N
        jSubPnlBehaviour.setPreferredSize(new java.awt.Dimension(265, 95));

        cmbAngryLevel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Alto", "Medio", "Bajo" }));
        cmbAngryLevel.setName("cmbAngryLevel"); // NOI18N

        lblAngryLevel.setText(resourceMap.getString("lblAngryLevel.text")); // NOI18N
        lblAngryLevel.setName("lblAngryLevel"); // NOI18N

        cmbStressLevel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Alto", "Medio", "Bajo" }));
        cmbStressLevel.setName("cmbStressLevel"); // NOI18N

        lblStressLevel.setText(resourceMap.getString("lblStressLevel.text")); // NOI18N
        lblStressLevel.setName("lblStressLevel"); // NOI18N

        javax.swing.GroupLayout jSubPnlBehaviourLayout = new javax.swing.GroupLayout(jSubPnlBehaviour);
        jSubPnlBehaviour.setLayout(jSubPnlBehaviourLayout);
        jSubPnlBehaviourLayout.setHorizontalGroup(
            jSubPnlBehaviourLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlBehaviourLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(jSubPnlBehaviourLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jSubPnlBehaviourLayout.createSequentialGroup()
                        .addComponent(lblStressLevel)
                        .addGap(18, 18, 18)
                        .addComponent(cmbStressLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jSubPnlBehaviourLayout.createSequentialGroup()
                        .addComponent(lblAngryLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(cmbAngryLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(65, Short.MAX_VALUE))
        );
        jSubPnlBehaviourLayout.setVerticalGroup(
            jSubPnlBehaviourLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlBehaviourLayout.createSequentialGroup()
                .addGroup(jSubPnlBehaviourLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(lblAngryLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbAngryLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlBehaviourLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(lblStressLevel)
                    .addComponent(cmbStressLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPnlGeneralHabits.add(jSubPnlBehaviour, java.awt.BorderLayout.LINE_START);

        jSubPnlDailyLife.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jSubPnlDailyLife.border.title"))); // NOI18N
        jSubPnlDailyLife.setName("jSubPnlDailyLife"); // NOI18N
        jSubPnlDailyLife.setPreferredSize(new java.awt.Dimension(180, 95));

        chkSedentarism.setSelected(true);
        chkSedentarism.setText(resourceMap.getString("chkSedentarism.text")); // NOI18N
        chkSedentarism.setName("chkSedentarism"); // NOI18N

        lblWalkedSquares.setText(resourceMap.getString("lblWalkedSquares.text")); // NOI18N
        lblWalkedSquares.setName("lblWalkedSquares"); // NOI18N

        lblWorkplace.setText(resourceMap.getString("lblWorkplace.text")); // NOI18N
        lblWorkplace.setName("lblWorkplace"); // NOI18N

        txtWorkplace.setText(resourceMap.getString("txtWorkplace.text")); // NOI18N
        txtWorkplace.setName("txtWorkplace"); // NOI18N

        spinWalkedSquares.setName("spinWalkedSquares"); // NOI18N

        javax.swing.GroupLayout jSubPnlDailyLifeLayout = new javax.swing.GroupLayout(jSubPnlDailyLife);
        jSubPnlDailyLife.setLayout(jSubPnlDailyLifeLayout);
        jSubPnlDailyLifeLayout.setHorizontalGroup(
            jSubPnlDailyLifeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlDailyLifeLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jSubPnlDailyLifeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkSedentarism)
                    .addComponent(lblWorkplace))
                .addGroup(jSubPnlDailyLifeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jSubPnlDailyLifeLayout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addComponent(lblWalkedSquares, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(spinWalkedSquares, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jSubPnlDailyLifeLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(txtWorkplace)))
                .addContainerGap(168, Short.MAX_VALUE))
        );
        jSubPnlDailyLifeLayout.setVerticalGroup(
            jSubPnlDailyLifeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSubPnlDailyLifeLayout.createSequentialGroup()
                .addGroup(jSubPnlDailyLifeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(spinWalkedSquares, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblWalkedSquares, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(chkSedentarism))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jSubPnlDailyLifeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblWorkplace)
                    .addComponent(txtWorkplace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(14, Short.MAX_VALUE))
        );

        jPnlGeneralHabits.add(jSubPnlDailyLife, java.awt.BorderLayout.CENTER);

        jPnlHabits.add(jPnlGeneralHabits, java.awt.BorderLayout.PAGE_START);

        jPnlPatientHabits.add(jPnlHabits, java.awt.BorderLayout.CENTER);

        jPnlSports.setName("jPnlSports"); // NOI18N
        jPnlSports.setPreferredSize(new java.awt.Dimension(400, 170));
        jPnlSports.setLayout(new java.awt.BorderLayout());

        jSubPnlSportsCrud.setName("jSubPnlSportsCrud"); // NOI18N
        jSubPnlSportsCrud.setPreferredSize(new java.awt.Dimension(150, 150));

        jBtnNewSport.setAction(actionMap.get("newSport")); // NOI18N
        jBtnNewSport.setIcon(resourceMap.getIcon("jBtnNewSport.icon")); // NOI18N
        jBtnNewSport.setText(resourceMap.getString("jBtnNewSport.text")); // NOI18N
        jBtnNewSport.setToolTipText(resourceMap.getString("jBtnNewSport.toolTipText")); // NOI18N
        jBtnNewSport.setMaximumSize(new java.awt.Dimension(87, 23));
        jBtnNewSport.setMinimumSize(new java.awt.Dimension(87, 23));
        jBtnNewSport.setName("jBtnNewSport"); // NOI18N
        jBtnNewSport.setPreferredSize(new java.awt.Dimension(120, 35));
        jBtnNewSport.setVerifyInputWhenFocusTarget(false);
        jSubPnlSportsCrud.add(jBtnNewSport);

        jBtnEditSport.setAction(actionMap.get("editSport")); // NOI18N
        jBtnEditSport.setIcon(resourceMap.getIcon("jBtnEditSport.icon")); // NOI18N
        jBtnEditSport.setText(resourceMap.getString("jBtnEditSport.text")); // NOI18N
        jBtnEditSport.setToolTipText(resourceMap.getString("jBtnEditSport.toolTipText")); // NOI18N
        jBtnEditSport.setMaximumSize(new java.awt.Dimension(87, 23));
        jBtnEditSport.setMinimumSize(new java.awt.Dimension(87, 23));
        jBtnEditSport.setName("jBtnEditSport"); // NOI18N
        jBtnEditSport.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlSportsCrud.add(jBtnEditSport);

        jBtnDeleteSport.setAction(actionMap.get("removeSport")); // NOI18N
        jBtnDeleteSport.setIcon(resourceMap.getIcon("jBtnDeleteSport.icon")); // NOI18N
        jBtnDeleteSport.setText(resourceMap.getString("jBtnDeleteSport.text")); // NOI18N
        jBtnDeleteSport.setToolTipText(resourceMap.getString("jBtnDeleteSport.toolTipText")); // NOI18N
        jBtnDeleteSport.setMaximumSize(new java.awt.Dimension(87, 23));
        jBtnDeleteSport.setMinimumSize(new java.awt.Dimension(87, 23));
        jBtnDeleteSport.setName("jBtnDeleteSport"); // NOI18N
        jBtnDeleteSport.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlSportsCrud.add(jBtnDeleteSport);

        jBtnClearSports.setAction(actionMap.get("clearSport")); // NOI18N
        jBtnClearSports.setIcon(resourceMap.getIcon("jBtnClearSports.icon")); // NOI18N
        jBtnClearSports.setText(resourceMap.getString("jBtnClearSports.text")); // NOI18N
        jBtnClearSports.setToolTipText(resourceMap.getString("jBtnClearSports.toolTipText")); // NOI18N
        jBtnClearSports.setName("jBtnClearSports"); // NOI18N
        jBtnClearSports.setPreferredSize(new java.awt.Dimension(120, 35));
        jBtnClearSports.setVerifyInputWhenFocusTarget(false);
        jSubPnlSportsCrud.add(jBtnClearSports);

        jPnlSports.add(jSubPnlSportsCrud, java.awt.BorderLayout.EAST);

        jPnlSportsList.setName("jPnlSportsList"); // NOI18N
        jPnlSportsList.setPreferredSize(new java.awt.Dimension(300, 150));
        jPnlSportsList.setLayout(new java.awt.BorderLayout());

        jScrollPane3.setName("jScrollPane3"); // NOI18N
        jScrollPane3.setPreferredSize(new java.awt.Dimension(200, 159));

        tableSportsList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableSportsList.setName("tableSportsList"); // NOI18N
        jScrollPane3.setViewportView(tableSportsList);

        jPnlSportsList.add(jScrollPane3, java.awt.BorderLayout.CENTER);

        jPnlTableTop.setName("jPnlTableTop"); // NOI18N
        jPnlTableTop.setPreferredSize(new java.awt.Dimension(350, 20));

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout jPnlTableTopLayout = new javax.swing.GroupLayout(jPnlTableTop);
        jPnlTableTop.setLayout(jPnlTableTopLayout);
        jPnlTableTopLayout.setHorizontalGroup(
            jPnlTableTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPnlTableTopLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addContainerGap(447, Short.MAX_VALUE))
        );
        jPnlTableTopLayout.setVerticalGroup(
            jPnlTableTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPnlTableTopLayout.createSequentialGroup()
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPnlSportsList.add(jPnlTableTop, java.awt.BorderLayout.NORTH);

        jPnlSportsBottom.setName("jPnlSportsBottom"); // NOI18N
        jPnlSportsBottom.setPreferredSize(new java.awt.Dimension(587, 10));

        javax.swing.GroupLayout jPnlSportsBottomLayout = new javax.swing.GroupLayout(jPnlSportsBottom);
        jPnlSportsBottom.setLayout(jPnlSportsBottomLayout);
        jPnlSportsBottomLayout.setHorizontalGroup(
            jPnlSportsBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 598, Short.MAX_VALUE)
        );
        jPnlSportsBottomLayout.setVerticalGroup(
            jPnlSportsBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );

        jPnlSportsList.add(jPnlSportsBottom, java.awt.BorderLayout.PAGE_END);

        jPnlSports.add(jPnlSportsList, java.awt.BorderLayout.CENTER);

        jPnlPatientHabits.add(jPnlSports, java.awt.BorderLayout.SOUTH);

        jTabbedPane1.addTab(resourceMap.getString("jPnlPatientHabits.TabConstraints.tabTitle"), jPnlPatientHabits); // NOI18N

        jPnlPatientPathologies.setName("jPnlPatientPathologies"); // NOI18N
        jPnlPatientPathologies.setLayout(new java.awt.BorderLayout());

        jPnlTablePathology.setName("jPnlTablePathology"); // NOI18N
        jPnlTablePathology.setPreferredSize(new java.awt.Dimension(300, 200));
        jPnlTablePathology.setLayout(new java.awt.BorderLayout());

        jScrollPane4.setName("jScrollPane4"); // NOI18N
        jScrollPane4.setPreferredSize(new java.awt.Dimension(535, 160));

        tablePathologiesList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tablePathologiesList.setName("tablePathologiesList"); // NOI18N
        jScrollPane4.setViewportView(tablePathologiesList);

        jPnlTablePathology.add(jScrollPane4, java.awt.BorderLayout.CENTER);

        jSubPnlPathologyCrud.setName("jSubPnlPathologyCrud"); // NOI18N
        jSubPnlPathologyCrud.setPreferredSize(new java.awt.Dimension(150, 250));

        jBtnNewPathology.setAction(actionMap.get("newPathology")); // NOI18N
        jBtnNewPathology.setIcon(resourceMap.getIcon("jBtnNewPathology.icon")); // NOI18N
        jBtnNewPathology.setText(resourceMap.getString("jBtnNewPathology.text")); // NOI18N
        jBtnNewPathology.setToolTipText(resourceMap.getString("jBtnNewPathology.toolTipText")); // NOI18N
        jBtnNewPathology.setMaximumSize(new java.awt.Dimension(87, 23));
        jBtnNewPathology.setMinimumSize(new java.awt.Dimension(87, 23));
        jBtnNewPathology.setName("jBtnNewPathology"); // NOI18N
        jBtnNewPathology.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlPathologyCrud.add(jBtnNewPathology);

        jBtnEditPathology.setAction(actionMap.get("editPathology")); // NOI18N
        jBtnEditPathology.setIcon(resourceMap.getIcon("jBtnEditPathology.icon")); // NOI18N
        jBtnEditPathology.setText(resourceMap.getString("jBtnEditPathology.text")); // NOI18N
        jBtnEditPathology.setToolTipText(resourceMap.getString("jBtnEditPathology.toolTipText")); // NOI18N
        jBtnEditPathology.setMaximumSize(new java.awt.Dimension(87, 23));
        jBtnEditPathology.setMinimumSize(new java.awt.Dimension(87, 23));
        jBtnEditPathology.setName("jBtnEditPathology"); // NOI18N
        jBtnEditPathology.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlPathologyCrud.add(jBtnEditPathology);

        jBtnDeletePathology.setAction(actionMap.get("removePathology")); // NOI18N
        jBtnDeletePathology.setIcon(resourceMap.getIcon("jBtnDeletePathology.icon")); // NOI18N
        jBtnDeletePathology.setText(resourceMap.getString("jBtnDeletePathology.text")); // NOI18N
        jBtnDeletePathology.setToolTipText(resourceMap.getString("jBtnDeletePathology.toolTipText")); // NOI18N
        jBtnDeletePathology.setMaximumSize(new java.awt.Dimension(87, 23));
        jBtnDeletePathology.setMinimumSize(new java.awt.Dimension(87, 23));
        jBtnDeletePathology.setName("jBtnDeletePathology"); // NOI18N
        jBtnDeletePathology.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlPathologyCrud.add(jBtnDeletePathology);

        jBtnClearPathologies.setAction(actionMap.get("clearPathology")); // NOI18N
        jBtnClearPathologies.setIcon(resourceMap.getIcon("jBtnClearPathologies.icon")); // NOI18N
        jBtnClearPathologies.setText(resourceMap.getString("jBtnClearPathologies.text")); // NOI18N
        jBtnClearPathologies.setToolTipText(resourceMap.getString("jBtnClearPathologies.toolTipText")); // NOI18N
        jBtnClearPathologies.setName("jBtnClearPathologies"); // NOI18N
        jBtnClearPathologies.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlPathologyCrud.add(jBtnClearPathologies);

        jPnlTablePathology.add(jSubPnlPathologyCrud, java.awt.BorderLayout.EAST);

        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(300, 30));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPnlTablePathology.add(jPanel1, java.awt.BorderLayout.PAGE_START);

        jPanel2.setName("jPanel2"); // NOI18N
        jPanel2.setPreferredSize(new java.awt.Dimension(300, 50));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 50, Short.MAX_VALUE)
        );

        jPnlTablePathology.add(jPanel2, java.awt.BorderLayout.PAGE_END);

        jPnlPatientPathologies.add(jPnlTablePathology, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab(resourceMap.getString("jPnlPatientPathologies.TabConstraints.tabTitle"), jPnlPatientPathologies); // NOI18N

        jPnlPatientSurgeries.setName("jPnlPatientSurgeries"); // NOI18N
        jPnlPatientSurgeries.setLayout(new java.awt.BorderLayout());

        jPnlTableSurgery.setName("jPnlTableSurgery"); // NOI18N
        jPnlTableSurgery.setLayout(new java.awt.BorderLayout());

        jScrollPane1.setName("jScrollPane1"); // NOI18N
        jScrollPane1.setPreferredSize(new java.awt.Dimension(300, 150));

        tableSurgeriesList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableSurgeriesList.setName("tableSurgeriesList"); // NOI18N
        jScrollPane1.setViewportView(tableSurgeriesList);

        jPnlTableSurgery.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        jPnlSugeries.setName("jPnlSugeries"); // NOI18N
        jPnlSugeries.setPreferredSize(new java.awt.Dimension(150, 250));

        jBtnNewSurgery.setAction(actionMap.get("newSurgery")); // NOI18N
        jBtnNewSurgery.setIcon(resourceMap.getIcon("jBtnNewSurgery.icon")); // NOI18N
        jBtnNewSurgery.setText(resourceMap.getString("jBtnNewSurgery.text")); // NOI18N
        jBtnNewSurgery.setToolTipText(resourceMap.getString("jBtnNewSurgery.toolTipText")); // NOI18N
        jBtnNewSurgery.setName("jBtnNewSurgery"); // NOI18N
        jBtnNewSurgery.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlSugeries.add(jBtnNewSurgery);

        jBtnEditSurgery.setAction(actionMap.get("editSurgery")); // NOI18N
        jBtnEditSurgery.setIcon(resourceMap.getIcon("jBtnEditSurgery.icon")); // NOI18N
        jBtnEditSurgery.setText(resourceMap.getString("jBtnEditSurgery.text")); // NOI18N
        jBtnEditSurgery.setName("jBtnEditSurgery"); // NOI18N
        jBtnEditSurgery.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlSugeries.add(jBtnEditSurgery);

        jBtnDeleteSurgery.setAction(actionMap.get("removeSurgery")); // NOI18N
        jBtnDeleteSurgery.setIcon(resourceMap.getIcon("jBtnDeleteSurgery.icon")); // NOI18N
        jBtnDeleteSurgery.setText(resourceMap.getString("jBtnDeleteSurgery.text")); // NOI18N
        jBtnDeleteSurgery.setToolTipText(resourceMap.getString("jBtnDeleteSurgery.toolTipText")); // NOI18N
        jBtnDeleteSurgery.setName("jBtnDeleteSurgery"); // NOI18N
        jBtnDeleteSurgery.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlSugeries.add(jBtnDeleteSurgery);

        jBtnClearSurgeries.setAction(actionMap.get("clearSurgery")); // NOI18N
        jBtnClearSurgeries.setIcon(resourceMap.getIcon("jBtnClearSurgeries.icon")); // NOI18N
        jBtnClearSurgeries.setText(resourceMap.getString("jBtnClearSurgeries.text")); // NOI18N
        jBtnClearSurgeries.setToolTipText(resourceMap.getString("jBtnClearSurgeries.toolTipText")); // NOI18N
        jBtnClearSurgeries.setName("jBtnClearSurgeries"); // NOI18N
        jBtnClearSurgeries.setPreferredSize(new java.awt.Dimension(120, 35));
        jPnlSugeries.add(jBtnClearSurgeries);

        jPnlTableSurgery.add(jPnlSugeries, java.awt.BorderLayout.EAST);

        jPnlSurgeryTop.setName("jPnlSurgeryTop"); // NOI18N
        jPnlSurgeryTop.setPreferredSize(new java.awt.Dimension(300, 30));

        javax.swing.GroupLayout jPnlSurgeryTopLayout = new javax.swing.GroupLayout(jPnlSurgeryTop);
        jPnlSurgeryTop.setLayout(jPnlSurgeryTopLayout);
        jPnlSurgeryTopLayout.setHorizontalGroup(
            jPnlSurgeryTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPnlSurgeryTopLayout.setVerticalGroup(
            jPnlSurgeryTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPnlTableSurgery.add(jPnlSurgeryTop, java.awt.BorderLayout.NORTH);

        jPnlSurgeryBottom.setName("jPnlSurgeryBottom"); // NOI18N
        jPnlSurgeryBottom.setPreferredSize(new java.awt.Dimension(250, 50));
        jPnlTableSurgery.add(jPnlSurgeryBottom, java.awt.BorderLayout.SOUTH);

        jPnlPatientSurgeries.add(jPnlTableSurgery, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab(resourceMap.getString("jPnlPatientSurgeries.TabConstraints.tabTitle"), jPnlPatientSurgeries); // NOI18N

        jPnlPatientMedicines.setName("jPnlPatientMedicines1"); // NOI18N
        jPnlPatientMedicines.setLayout(new java.awt.BorderLayout());

        jPnlMedicines.setRequestFocusEnabled(false);
        jPnlMedicines.setLayout(new java.awt.BorderLayout());

        jScrollPane5.setName("jScrollPane5"); // NOI18N
        jScrollPane5.setPreferredSize(new java.awt.Dimension(378, 160));

        tableMedicinesList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableMedicinesList.setName("tableMedicinesList"); // NOI18N
        jScrollPane5.setViewportView(tableMedicinesList);

        jPnlMedicines.add(jScrollPane5, java.awt.BorderLayout.CENTER);

        jPanel3.setName("jPanel3"); // NOI18N
        jPanel3.setPreferredSize(new java.awt.Dimension(300, 50));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 50, Short.MAX_VALUE)
        );

        jPnlMedicines.add(jPanel3, java.awt.BorderLayout.SOUTH);

        jPnlMedicinesTop.setName("jPnlMedicinesTop"); // NOI18N
        jPnlMedicinesTop.setPreferredSize(new java.awt.Dimension(300, 30));

        javax.swing.GroupLayout jPnlMedicinesTopLayout = new javax.swing.GroupLayout(jPnlMedicinesTop);
        jPnlMedicinesTop.setLayout(jPnlMedicinesTopLayout);
        jPnlMedicinesTopLayout.setHorizontalGroup(
            jPnlMedicinesTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPnlMedicinesTopLayout.setVerticalGroup(
            jPnlMedicinesTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPnlMedicines.add(jPnlMedicinesTop, java.awt.BorderLayout.PAGE_START);

        jSubPnlMedicinesCrud.setName("jSubPnlMedicinesCrud"); // NOI18N
        jSubPnlMedicinesCrud.setPreferredSize(new java.awt.Dimension(150, 250));

        jBtnNewMedicine.setAction(actionMap.get("newMedicine")); // NOI18N
        jBtnNewMedicine.setIcon(resourceMap.getIcon("jBtnNewMedicine.icon")); // NOI18N
        jBtnNewMedicine.setText(resourceMap.getString("jBtnNewMedicine.text")); // NOI18N
        jBtnNewMedicine.setToolTipText(resourceMap.getString("jBtnNewMedicine.toolTipText")); // NOI18N
        jBtnNewMedicine.setName("jBtnNewMedicine"); // NOI18N
        jBtnNewMedicine.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlMedicinesCrud.add(jBtnNewMedicine);

        jBtnEditMedicine.setAction(actionMap.get("editMedicine")); // NOI18N
        jBtnEditMedicine.setIcon(resourceMap.getIcon("jBtnEditMedicine.icon")); // NOI18N
        jBtnEditMedicine.setText(resourceMap.getString("jBtnEditMedicine.text")); // NOI18N
        jBtnEditMedicine.setToolTipText(resourceMap.getString("jBtnEditMedicine.toolTipText")); // NOI18N
        jBtnEditMedicine.setName("jBtnEditMedicine"); // NOI18N
        jBtnEditMedicine.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlMedicinesCrud.add(jBtnEditMedicine);

        jBtnDeleteMedicine.setAction(actionMap.get("removeMedicine")); // NOI18N
        jBtnDeleteMedicine.setIcon(resourceMap.getIcon("jBtnDeleteMedicine.icon")); // NOI18N
        jBtnDeleteMedicine.setText(resourceMap.getString("jBtnDeleteMedicine.text")); // NOI18N
        jBtnDeleteMedicine.setToolTipText(resourceMap.getString("jBtnDeleteMedicine.toolTipText")); // NOI18N
        jBtnDeleteMedicine.setName("jBtnDeleteMedicine"); // NOI18N
        jBtnDeleteMedicine.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlMedicinesCrud.add(jBtnDeleteMedicine);

        jBtnClearMedicines.setAction(actionMap.get("clearMedicine")); // NOI18N
        jBtnClearMedicines.setIcon(resourceMap.getIcon("jBtnClearMedicines.icon")); // NOI18N
        jBtnClearMedicines.setText(resourceMap.getString("jBtnClearMedicines.text")); // NOI18N
        jBtnClearMedicines.setToolTipText(resourceMap.getString("jBtnClearMedicines.toolTipText")); // NOI18N
        jBtnClearMedicines.setName("jBtnClearMedicines"); // NOI18N
        jBtnClearMedicines.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlMedicinesCrud.add(jBtnClearMedicines);

        jPnlMedicines.add(jSubPnlMedicinesCrud, java.awt.BorderLayout.LINE_END);

        jPnlPatientMedicines.add(jPnlMedicines, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab(resourceMap.getString("jPnlPatientMedicines1.TabConstraints.tabTitle"), jPnlPatientMedicines); // NOI18N

        jPnlFamilyBackground.setName("jPnlFamilyBackground"); // NOI18N
        jPnlFamilyBackground.setLayout(new java.awt.BorderLayout());

        jPnlBackground.setName("jPnlBackground"); // NOI18N
        jPnlBackground.setRequestFocusEnabled(false);
        jPnlBackground.setLayout(new java.awt.BorderLayout());

        jScrollPane6.setName("jScrollPane6"); // NOI18N
        jScrollPane6.setPreferredSize(new java.awt.Dimension(378, 160));

        jTableBackground.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        jTableBackground.setName("jTableBackground"); // NOI18N
        jScrollPane6.setViewportView(jTableBackground);

        jPnlBackground.add(jScrollPane6, java.awt.BorderLayout.CENTER);

        jPnlBackgroundBottom.setName("jPnlBackgroundBottom"); // NOI18N
        jPnlBackgroundBottom.setPreferredSize(new java.awt.Dimension(300, 50));

        javax.swing.GroupLayout jPnlBackgroundBottomLayout = new javax.swing.GroupLayout(jPnlBackgroundBottom);
        jPnlBackgroundBottom.setLayout(jPnlBackgroundBottomLayout);
        jPnlBackgroundBottomLayout.setHorizontalGroup(
            jPnlBackgroundBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPnlBackgroundBottomLayout.setVerticalGroup(
            jPnlBackgroundBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 50, Short.MAX_VALUE)
        );

        jPnlBackground.add(jPnlBackgroundBottom, java.awt.BorderLayout.SOUTH);

        jPnlBackgroundTop.setName("jPnlBackgroundTop"); // NOI18N
        jPnlBackgroundTop.setPreferredSize(new java.awt.Dimension(300, 30));

        javax.swing.GroupLayout jPnlBackgroundTopLayout = new javax.swing.GroupLayout(jPnlBackgroundTop);
        jPnlBackgroundTop.setLayout(jPnlBackgroundTopLayout);
        jPnlBackgroundTopLayout.setHorizontalGroup(
            jPnlBackgroundTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 748, Short.MAX_VALUE)
        );
        jPnlBackgroundTopLayout.setVerticalGroup(
            jPnlBackgroundTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPnlBackground.add(jPnlBackgroundTop, java.awt.BorderLayout.PAGE_START);

        jSubPnlFamily.setName("jSubPnlFamily"); // NOI18N
        jSubPnlFamily.setPreferredSize(new java.awt.Dimension(150, 250));

        jBtnNewBackground.setAction(actionMap.get("newFamilyBackground")); // NOI18N
        jBtnNewBackground.setIcon(resourceMap.getIcon("jBtnNewBackground.icon")); // NOI18N
        jBtnNewBackground.setText(resourceMap.getString("jBtnNewBackground.text")); // NOI18N
        jBtnNewBackground.setToolTipText(resourceMap.getString("jBtnNewBackground.toolTipText")); // NOI18N
        jBtnNewBackground.setName("jBtnNewBackground"); // NOI18N
        jBtnNewBackground.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlFamily.add(jBtnNewBackground);

        jBtnEditBackground.setAction(actionMap.get("editFamilyBackground")); // NOI18N
        jBtnEditBackground.setIcon(resourceMap.getIcon("jBtnEditBackground.icon")); // NOI18N
        jBtnEditBackground.setText(resourceMap.getString("jBtnEditBackground.text")); // NOI18N
        jBtnEditBackground.setToolTipText(resourceMap.getString("jBtnEditBackground.toolTipText")); // NOI18N
        jBtnEditBackground.setName("jBtnEditBackground"); // NOI18N
        jBtnEditBackground.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlFamily.add(jBtnEditBackground);

        jBtnDeleteBackground.setAction(actionMap.get("removeFamilyBackground")); // NOI18N
        jBtnDeleteBackground.setIcon(resourceMap.getIcon("jBtnDeleteBackground.icon")); // NOI18N
        jBtnDeleteBackground.setText(resourceMap.getString("jBtnDeleteBackground.text")); // NOI18N
        jBtnDeleteBackground.setToolTipText(resourceMap.getString("jBtnDeleteBackground.toolTipText")); // NOI18N
        jBtnDeleteBackground.setName("jBtnDeleteBackground"); // NOI18N
        jBtnDeleteBackground.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlFamily.add(jBtnDeleteBackground);

        jBtnClearBackground.setAction(actionMap.get("clearFamilyBackground")); // NOI18N
        jBtnClearBackground.setIcon(resourceMap.getIcon("jBtnClearBackground.icon")); // NOI18N
        jBtnClearBackground.setText(resourceMap.getString("jBtnClearBackground.text")); // NOI18N
        jBtnClearBackground.setToolTipText(resourceMap.getString("jBtnClearBackground.toolTipText")); // NOI18N
        jBtnClearBackground.setName("jBtnClearBackground"); // NOI18N
        jBtnClearBackground.setPreferredSize(new java.awt.Dimension(120, 35));
        jSubPnlFamily.add(jBtnClearBackground);

        jPnlBackground.add(jSubPnlFamily, java.awt.BorderLayout.EAST);
        jSubPnlFamily.getAccessibleContext().setAccessibleName(resourceMap.getString("jSubPnlFamily.AccessibleContext.accessibleName")); // NOI18N

        jPnlFamilyBackground.add(jPnlBackground, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab(resourceMap.getString("jPnlFamilyBackground.TabConstraints.tabTitle"), jPnlFamilyBackground); // NOI18N

        getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        jPnlBtns.setName("jPnlBtns"); // NOI18N
        jPnlBtns.setPreferredSize(new java.awt.Dimension(650, 45));

        jBtnOk.setAction(actionMap.get("confirm")); // NOI18N
        jBtnOk.setText(resourceMap.getString("jBtnOk.text")); // NOI18N
        jBtnOk.setToolTipText(resourceMap.getString("jBtnOk.toolTipText")); // NOI18N
        jBtnOk.setName(""); // NOI18N
        jPnlBtns.add(jBtnOk);

        jBtnCancel.setAction(actionMap.get("cancel")); // NOI18N
        jBtnCancel.setText(resourceMap.getString("jBtnCancel.text")); // NOI18N
        jBtnCancel.setToolTipText(resourceMap.getString("jBtnCancel.toolTipText")); // NOI18N
        jBtnCancel.setName(""); // NOI18N
        jPnlBtns.add(jBtnCancel);

        getContentPane().add(jPnlBtns, java.awt.BorderLayout.SOUTH);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jRbNeverSmokeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jRbNeverSmokeStateChanged
        if (this.getjRbNeverSmoke().isSelected()) {
            this.getjSpnCigarettsPerDay().setEnabled(false);
            this.getjSpnCigarettsPerDay().setValue(0);
            this.getjTxtYearsAtStartSmooking().setEnabled(false);
            this.getjTxtYearsAtStartSmooking().setText("");
            this.getjTxtYearsAtEndSmooking().setEnabled(false);
            this.getjTxtYearsAtEndSmooking().setText("");
        }
    }//GEN-LAST:event_jRbNeverSmokeStateChanged

    private void jRbWasSmokerStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jRbWasSmokerStateChanged
        if (this.getjRbWasSmoker().isSelected()) {
            this.getjSpnCigarettsPerDay().setEnabled(true);
            this.getjTxtYearsAtStartSmooking().setEnabled(true);
            this.getjTxtYearsAtEndSmooking().setEnabled(true);
        }
    }//GEN-LAST:event_jRbWasSmokerStateChanged

    private void jRbIsSmokerStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jRbIsSmokerStateChanged
        if (this.getjRbIsSmoker().isSelected()) {
            this.getjSpnCigarettsPerDay().setEnabled(true);
            this.getjTxtYearsAtStartSmooking().setEnabled(true);
            this.getjTxtYearsAtEndSmooking().setEnabled(false);
            this.getjTxtYearsAtEndSmooking().setText("");
        }
    }//GEN-LAST:event_jRbIsSmokerStateChanged

    private void jTxtAgePropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jTxtAgePropertyChange
        if (this.controllerPatientEdition != null && this.jTxtAge.isEditValid()) {
            String yearsTxt = this.jTxtAge.getText();
            int age;
            try {
                age = Integer.valueOf(yearsTxt);
            } catch (NumberFormatException e) {
                return;
            }
            if ((this.jXEdtBirthdate.getDate() != null) && (this.jXEdtBirthdate.isEditValid())) {
                int years = this.ageUtils.getAgeFromBirthDate(this.jXEdtBirthdate.getDate());
                if (age == years) {
                    return;
                }
            }
            Date birthDate = this.ageUtils.getBirthDateFromAge(age);
            this.jXEdtBirthdate.setDate(birthDate);
        }
    }//GEN-LAST:event_jTxtAgePropertyChange

    private void jXEdtBirthdatePropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jXEdtBirthdatePropertyChange
        if ((this.jXEdtBirthdate.getDate() != null)
                && (this.jXEdtBirthdate.isEditValid())) {
            int years = this.ageUtils.getAgeFromBirthDate(this.jXEdtBirthdate.getDate());
            String yearsTxt = this.jTxtAge.getText();
            int age;
            try {
                age = Integer.valueOf(yearsTxt);
                if (age == years) {
                    return;
                } else {
                    this.jTxtAge.setText(String.valueOf(years));
                }
            } catch (NumberFormatException e) {
                this.jTxtAge.setText(String.valueOf(years));
                return;
            }

        }
    }//GEN-LAST:event_jXEdtBirthdatePropertyChange

    @Action
    public void confirm() {
        this.controllerPatientEdition.ok();
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup btnGroupSmoker;
    private javax.swing.JCheckBox chkAutoMedication;
    private javax.swing.JCheckBox chkSedentarism;
    private javax.swing.JCheckBox chkUnderObs;
    private javax.swing.JComboBox cmbAngryLevel;
    private javax.swing.JComboBox cmbHeadPhysician1;
    private javax.swing.JComboBox cmbStressLevel;
    private org.jdesktop.swingx.JXDatePicker dateLastMedicVisit;
    private javax.swing.JButton jBtnCancel;
    private javax.swing.JButton jBtnClearBackground;
    private javax.swing.JButton jBtnClearMedicines;
    private javax.swing.JButton jBtnClearMedicines1;
    private javax.swing.JButton jBtnClearPathologies;
    private javax.swing.JButton jBtnClearSports;
    private javax.swing.JButton jBtnClearSurgeries;
    private javax.swing.JButton jBtnDeleteBackground;
    private javax.swing.JButton jBtnDeleteClinicalInfo;
    private javax.swing.JButton jBtnDeleteMedicine;
    private javax.swing.JButton jBtnDeletePathology;
    private javax.swing.JButton jBtnDeleteSport;
    private javax.swing.JButton jBtnDeleteSurgery;
    private javax.swing.JButton jBtnEditBackground;
    private javax.swing.JButton jBtnEditClinicalInfo;
    private javax.swing.JButton jBtnEditMedicine;
    private javax.swing.JButton jBtnEditPathology;
    private javax.swing.JButton jBtnEditSport;
    private javax.swing.JButton jBtnEditSurgery;
    private javax.swing.JButton jBtnNewBackground;
    private javax.swing.JButton jBtnNewClinicalInfo;
    private javax.swing.JButton jBtnNewMedicine;
    private javax.swing.JButton jBtnNewPathology;
    private javax.swing.JButton jBtnNewSport;
    private javax.swing.JButton jBtnNewSurgery;
    private javax.swing.JButton jBtnOk;
    private javax.swing.JButton jBtnSearchMedics;
    private javax.swing.JCheckBox jChkDrink;
    private javax.swing.JComboBox jCmbIdentityType;
    private javax.swing.JComboBox jCmbProfession;
    private javax.swing.JComboBox jCmbSex;
    private javax.swing.JTextField jEdtAddress;
    private javax.swing.JTextField jEdtCellphone;
    private javax.swing.JTextField jEdtCity;
    private javax.swing.JTextField jEdtIdentityNumber;
    private javax.swing.JTextField jEdtMail;
    private javax.swing.JTextField jEdtName;
    private javax.swing.JTextField jEdtPhone;
    private javax.swing.JTextField jEdtSurname;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLblAddress;
    private javax.swing.JLabel jLblAge;
    private javax.swing.JLabel jLblBirthdate;
    private javax.swing.JLabel jLblCellphone;
    private javax.swing.JLabel jLblCigarettesPerDay;
    private javax.swing.JLabel jLblCity;
    private javax.swing.JLabel jLblIdentityType;
    private javax.swing.JLabel jLblMail;
    private javax.swing.JLabel jLblName;
    private javax.swing.JLabel jLblNumber;
    private javax.swing.JLabel jLblPhone;
    private javax.swing.JLabel jLblProfession;
    private javax.swing.JLabel jLblSex;
    private javax.swing.JLabel jLblSurname;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPnlBackground;
    private javax.swing.JPanel jPnlBackgroundBottom;
    private javax.swing.JPanel jPnlBackgroundTop;
    private javax.swing.JPanel jPnlBtns;
    private javax.swing.JPanel jPnlClinicalInfoCrud;
    private javax.swing.JPanel jPnlClinicalInfoTable;
    private javax.swing.JPanel jPnlFamilyBackground;
    private javax.swing.JPanel jPnlGeneralHabits;
    private javax.swing.JPanel jPnlHabits;
    private javax.swing.JPanel jPnlMedicines;
    private javax.swing.JPanel jPnlMedicines1;
    private javax.swing.JPanel jPnlMedicinesTop;
    private javax.swing.JPanel jPnlMedicinesTop1;
    private javax.swing.JPanel jPnlPatientClinical;
    private javax.swing.JPanel jPnlPatientHabits;
    private javax.swing.JPanel jPnlPatientMedicines;
    private javax.swing.JPanel jPnlPatientPathologies;
    private javax.swing.JPanel jPnlPatientPersonal;
    private javax.swing.JPanel jPnlPatientSurgeries;
    private javax.swing.JPanel jPnlSports;
    private javax.swing.JPanel jPnlSportsBottom;
    private javax.swing.JPanel jPnlSportsList;
    private javax.swing.JPanel jPnlSugeries;
    private javax.swing.JPanel jPnlSurgeryBottom;
    private javax.swing.JPanel jPnlSurgeryTop;
    private javax.swing.JPanel jPnlTablePathology;
    private javax.swing.JPanel jPnlTableSurgery;
    private javax.swing.JPanel jPnlTableTop;
    private javax.swing.JRadioButton jRbIsSmoker;
    private javax.swing.JRadioButton jRbNeverSmoke;
    private javax.swing.JRadioButton jRbWasSmoker;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JSpinner jSpnCigarettsPerDay;
    private javax.swing.JPanel jSubPnlBehaviour;
    private javax.swing.JPanel jSubPnlDailyLife;
    private javax.swing.JPanel jSubPnlFamily;
    private javax.swing.JPanel jSubPnlMedicinesCrud;
    private javax.swing.JPanel jSubPnlPathologyCrud;
    private javax.swing.JPanel jSubPnlPersonalInfo;
    private javax.swing.JPanel jSubPnlSportsCrud;
    private javax.swing.JPanel jSubPnlTracing;
    private javax.swing.JPanel jSubPnlVices;
    private javax.swing.JTabbedPane jTabbedPane1;
    private org.jdesktop.swingx.JXTable jTableBackground;
    private javax.swing.JFormattedTextField jTxtAge;
    private javax.swing.JFormattedTextField jTxtYearsAtEndSmooking;
    private javax.swing.JFormattedTextField jTxtYearsAtStartSmooking;
    private org.jdesktop.swingx.JXDatePicker jXEdtBirthdate;
    private javax.swing.JLabel lblAngryLevel;
    private javax.swing.JLabel lblEndedSmoking;
    private javax.swing.JLabel lblHeadPhysician;
    private javax.swing.JLabel lblLastMedicVisit;
    private javax.swing.JLabel lblStartedSmoking;
    private javax.swing.JLabel lblStressLevel;
    private javax.swing.JLabel lblWalkedSquares;
    private javax.swing.JLabel lblWorkplace;
    private javax.swing.JSpinner spinWalkedSquares;
    private org.jdesktop.swingx.JXTable tableClinicalInfo;
    private org.jdesktop.swingx.JXTable tableMedicinesList;
    private org.jdesktop.swingx.JXTable tablePathologiesList;
    private org.jdesktop.swingx.JXTable tableSportsList;
    private org.jdesktop.swingx.JXTable tableSurgeriesList;
    private javax.swing.JTextField txtWorkplace;
    // End of variables declaration//GEN-END:variables

    private void initForm() {
        this.getjCmbSex().removeAllItems();
        this.getjCmbSex().addItem("F");
        this.getjCmbSex().addItem("M");
        this.btnGroupSmoker.add(this.getjRbNeverSmoke());
        this.btnGroupSmoker.add(this.getjRbWasSmoker());
        this.btnGroupSmoker.add(this.getjRbIsSmoker());

    }

    /**
     * @return the jCmbIdentityType
     */
    public javax.swing.JComboBox getjCmbIdentityType() {
        return jCmbIdentityType;
    }

    /**
     * @return the jCmbSex
     */
    public javax.swing.JComboBox getjCmbSex() {
        return jCmbSex;
    }

    /**
     * @return the jEdtAddress
     */
    public javax.swing.JTextField getjEdtAddress() {
        return jEdtAddress;
    }

    /**
     * @return the jEdtCellphone
     */
    public javax.swing.JTextField getjEdtCellphone() {
        return jEdtCellphone;
    }

    /**
     * @return the jEdtIdentityNumber
     */
    public javax.swing.JTextField getjEdtIdentityNumber() {
        return jEdtIdentityNumber;
    }

    /**
     * @return the jEdtMail
     */
    public javax.swing.JTextField getjEdtMail() {
        return jEdtMail;
    }

    /**
     * @return the jEdtName
     */
    public javax.swing.JTextField getjEdtName() {
        return jEdtName;
    }

    /**
     * @return the jEdtPhone
     */
    public javax.swing.JTextField getjEdtPhone() {
        return jEdtPhone;
    }

    /**
     * @return the jEdtSurname
     */
    public javax.swing.JTextField getjEdtSurname() {
        return jEdtSurname;
    }

    /**
     * @return the jXEdtBirthdate
     */
    public org.jdesktop.swingx.JXDatePicker getjXEdtBirthdate() {
        return jXEdtBirthdate;
    }

    /**
     * @return the chkAutoMedication
     */
    public javax.swing.JCheckBox getChkAutoMedication() {
        return chkAutoMedication;
    }

    /**
     * @param chkAutoMedication the chkAutoMedication to set
     */
    public void setChkAutoMedication(javax.swing.JCheckBox chkAutoMedication) {
        this.chkAutoMedication = chkAutoMedication;
    }

    /**
     * @return the chkSedentarism
     */
    public javax.swing.JCheckBox getChkSedentarism() {
        return chkSedentarism;
    }

    /**
     * @param chkSedentarism the chkSedentarism to set
     */
    public void setChkSedentarism(javax.swing.JCheckBox chkSedentarism) {
        this.chkSedentarism = chkSedentarism;
    }

    /**
     * @return the chkUnderObs
     */
    public javax.swing.JCheckBox getChkUnderObs() {
        return chkUnderObs;
    }

    /**
     * @param chkUnderObs the chkUnderObs to set
     */
    public void setChkUnderObs(javax.swing.JCheckBox chkUnderObs) {
        this.chkUnderObs = chkUnderObs;
    }

    /**
     * @return the cmbAngryLevel
     */
    public javax.swing.JComboBox getCmbAngryLevel() {
        return cmbAngryLevel;
    }

    /**
     * @param cmbAngryLevel the cmbAngryLevel to set
     */
    public void setCmbAngryLevel(javax.swing.JComboBox cmbAngryLevel) {
        this.cmbAngryLevel = cmbAngryLevel;
    }

    /**
     * @return the cmbHeadPhysician
     */
    public javax.swing.JComboBox getCmbHeadPhysician() {
        return cmbHeadPhysician1;
    }

    /**
     * @param cmbHeadPhysician the cmbHeadPhysician to set
     */
    public void setCmbHeadPhysician(javax.swing.JComboBox cmbHeadPhysician) {
        this.cmbHeadPhysician1 = cmbHeadPhysician;
    }

    /**
     * @return the cmbStressLevel
     */
    public javax.swing.JComboBox getCmbStressLevel() {
        return cmbStressLevel;
    }

    /**
     * @param cmbStressLevel the cmbStressLevel to set
     */
    public void setCmbStressLevel(javax.swing.JComboBox cmbStressLevel) {
        this.cmbStressLevel = cmbStressLevel;
    }

    /**
     * @return the dateLastMedicVisit
     */
    public org.jdesktop.swingx.JXDatePicker getDateLastMedicVisit() {
        return dateLastMedicVisit;
    }

    /**
     * @param dateLastMedicVisit the dateLastMedicVisit to set
     */
    public void setDateLastMedicVisit(org.jdesktop.swingx.JXDatePicker dateLastMedicVisit) {
        this.dateLastMedicVisit = dateLastMedicVisit;
    }

    /**
     * @return the spinWalkedSquares
     */
    public javax.swing.JSpinner getSpinWalkedSquares() {
        return spinWalkedSquares;
    }

    /**
     * @param spinWalkedSquares the spinWalkedSquares to set
     */
    public void setSpinWalkedSquares(javax.swing.JSpinner spinWalkedSquares) {
        this.spinWalkedSquares = spinWalkedSquares;
    }

    /**
     * @return the tableMedicinesList
     */
    public org.jdesktop.swingx.JXTable getTableMedicinesList() {
        return tableMedicinesList;
    }

    /**
     * @param tableMedicinesList the tableMedicinesList to set
     */
    public void setTableMedicinesList(org.jdesktop.swingx.JXTable tableMedicinesList) {
        this.tableMedicinesList = tableMedicinesList;
    }

    /**
     * @return the tablePathologiesList
     */
    public org.jdesktop.swingx.JXTable getTablePathologiesList() {
        return tablePathologiesList;
    }

    /**
     * @param tablePathologiesList the tablePathologiesList to set
     */
    public void setTablePathologiesList(org.jdesktop.swingx.JXTable tablePathologiesList) {
        this.tablePathologiesList = tablePathologiesList;
    }

    /**
     * @return the tableSportsList
     */
    public org.jdesktop.swingx.JXTable getTableSportsList() {
        return tableSportsList;
    }

    /**
     * @param tableSportsList the tableSportsList to set
     */
    public void setTableSportsList(org.jdesktop.swingx.JXTable tableSportsList) {
        this.tableSportsList = tableSportsList;
    }

    /**
     * @return the tableSurgeriesList
     */
    public org.jdesktop.swingx.JXTable getTableSurgeriesList() {
        return tableSurgeriesList;
    }

    /**
     * @param tableSurgeriesList the tableSurgeriesList to set
     */
    public void setTableSurgeriesList(org.jdesktop.swingx.JXTable tableSurgeriesList) {
        this.tableSurgeriesList = tableSurgeriesList;
    }

    /**
     * @return the txtWorkplace
     */
    public javax.swing.JTextField getTxtWorkplace() {
        return txtWorkplace;
    }

    /**
     * @param txtWorkplace the txtWorkplace to set
     */
    public void setTxtWorkplace(javax.swing.JTextField txtWorkplace) {
        this.txtWorkplace = txtWorkplace;
    }

    /**
     * @return the jTableBackground
     */
    public org.jdesktop.swingx.JXTable getjTableBackground() {
        return jTableBackground;
    }

    /**
     * @return the tableClinicalInfo
     */
    public org.jdesktop.swingx.JXTable getTableClinicalInfo() {
        return tableClinicalInfo;
    }

    @Action
    public void newClinicalInfo() {
        this.controllerPatientEdition.getControllerViewClinicalInfoByPatient().newEntity();
    }

    @Action
    public void editClinicalInfo() {
        this.controllerPatientEdition.getControllerViewClinicalInfoByPatient().editEntity();
    }

    @Action
    public void removeClinicalInfo() {
        this.controllerPatientEdition.getControllerViewClinicalInfoByPatient().removeEntity();
    }

    @Action
    public void clearClinicalInfo() {
        this.controllerPatientEdition.getControllerViewClinicalInfoByPatient().clearList();
    }

    @Action
    public void newSport() {
        this.controllerPatientEdition.getControllerViewSportByPatient().newEntity();
    }

    @Action
    public void editSport() {
        this.controllerPatientEdition.getControllerViewSportByPatient().editEntity();
    }

    @Action
    public void removeSport() {
        this.controllerPatientEdition.getControllerViewSportByPatient().removeEntity();
    }

    @Action
    public void clearSport() {
        this.controllerPatientEdition.getControllerViewSportByPatient().clearList();
    }

    @Action
    public void newPathology() {
        this.controllerPatientEdition.getControllerViewPathologyByPatient().newEntity();
    }

    @Action
    public void editPathology() {
        this.controllerPatientEdition.getControllerViewPathologyByPatient().editEntity();
    }

    @Action
    public void removePathology() {
        this.controllerPatientEdition.getControllerViewPathologyByPatient().clearList();
    }

    @Action
    public void clearPathology() {
        this.controllerPatientEdition.getControllerViewPathologyByPatient().clearList();
    }

    @Action
    public void newSurgery() {
        this.controllerPatientEdition.getControllerViewSurgeryByPatient().newEntity();
    }

    @Action
    public void editSurgery() {
        this.controllerPatientEdition.getControllerViewSurgeryByPatient().editEntity();
    }

    @Action
    public void removeSurgery() {
        this.controllerPatientEdition.getControllerViewSurgeryByPatient().removeEntity();
    }

    @Action
    public void clearSurgery() {
        this.controllerPatientEdition.getControllerViewSurgeryByPatient().clearList();
    }

    @Action
    public void newMedicine() {
        this.controllerPatientEdition.getControllerViewMedicineByPatient().newEntity();
    }

    @Action
    public void editMedicine() {
        this.controllerPatientEdition.getControllerViewMedicineByPatient().editEntity();
    }

    @Action
    public void removeMedicine() {
        this.controllerPatientEdition.getControllerViewMedicineByPatient().removeEntity();
    }

    @Action
    public void clearMedicine() {
        this.controllerPatientEdition.getControllerViewMedicineByPatient().clearList();
    }

    @Action
    public void newFamilyBackground() {
        this.controllerPatientEdition.getControllerViewFamilyBackground().newEntity();
    }

    @Action
    public void editFamilyBackground() {
        this.controllerPatientEdition.getControllerViewFamilyBackground().editEntity();
    }

    @Action
    public void removeFamilyBackground() {
        this.controllerPatientEdition.getControllerViewFamilyBackground().removeEntity();
    }

    @Action
    public void clearFamilyBackground() {
        this.controllerPatientEdition.getControllerViewFamilyBackground().clearList();
    }

    @Action
    public void cancel() {
        this.controllerPatientEdition.cancel();
    }

    /**
     * @return the jChkDrink
     */
    public javax.swing.JCheckBox getjChkDrink() {
        return jChkDrink;
    }

    /**
     * @return the jEdtCity
     */
    public javax.swing.JTextField getjEdtCity() {
        return jEdtCity;
    }

    /**
     * @return the jRbIsSmoker
     */
    public javax.swing.JRadioButton getjRbIsSmoker() {
        return jRbIsSmoker;
    }

    /**
     * @return the jRbNeverSmoke
     */
    public javax.swing.JRadioButton getjRbNeverSmoke() {
        return jRbNeverSmoke;
    }

    /**
     * @return the jRbWasSmoker
     */
    public javax.swing.JRadioButton getjRbWasSmoker() {
        return jRbWasSmoker;
    }

    /**
     * @return the jCmbProfession
     */
    public javax.swing.JComboBox getjCmbProfession() {
        return jCmbProfession;
    }

    /**
     * @return the jSpnCigarettsPerDay
     */
    public javax.swing.JSpinner getjSpnCigarettsPerDay() {
        return jSpnCigarettsPerDay;
    }

    /**
     * @return the jTxtYearsAtEndSmooking
     */
    public javax.swing.JFormattedTextField getjTxtYearsAtEndSmooking() {
        return jTxtYearsAtEndSmooking;
    }

    /**
     * @return the jTxtYearsAtStartSmooking
     */
    public javax.swing.JFormattedTextField getjTxtYearsAtStartSmooking() {
        return jTxtYearsAtStartSmooking;
    }

    public void intiSmokeHabits() {
        this.jRbIsSmokerStateChanged(null);
        this.jRbNeverSmokeStateChanged(null);
        this.jRbWasSmokerStateChanged(null);
    }

    /**
     * @return the jTxtAge
     */
    public javax.swing.JFormattedTextField getjTxtAge() {
        return jTxtAge;
    }
}
